package lcy.homework02;

/**
 * @ClassName: Drunkard
 * @Description: 酒鬼类
 * @author: 李春洋
 * @date: 2024/3/30 17:24
 * @Blog: https://
 */
public class Drunkard {
    Point location;

    Drunkard() {
        location = new Point(0, 0);
    }

    void takeStep(Point step) {
        location.x += step.x;
        location.y += step.y;
    }

    Point getLocation() {
        return location;
    }
}
